package com.design.pattern.factory.Multiple.factory;

import com.design.pattern.factory.simple.ThirdPartLogin;
import com.design.pattern.factory.simple.ThirdPartMblog;
import com.design.pattern.factory.simple.ThirdPartQQ;
import com.design.pattern.factory.simple.ThirdPartWeChat;

/**
 * 多方法工厂实例
 */
public class MultipleFactory {
    /**
     * 获取QQ实例
     * @return
     */
    public static ThirdPartLogin getQq(){
        return new ThirdPartQQ();
    }

    /**
     * 获取微信实例
     * @return
     */
    public static ThirdPartLogin getWeChat(){
        return new ThirdPartWeChat();
    }

    /**
     * 获取微博实例
     * @return
     */
    public static ThirdPartLogin getMblog(){
        return new ThirdPartMblog();
    }
}
